<template>
    <rx-dialog  @handOk="ok" @cancel="cancel" >
        <a-form>
            <a-form-item :label="i18n('form.projectName','项目名称')">
                <a-input v-model="config.objectName" />
            </a-form-item>
            <a-form-item :label="i18n('form.address','住址')">
                <a-input v-model="config.address" />
            </a-form-item>
        </a-form>
    </rx-dialog>
</template>

<script>

import {Util,RxDialog} from "@lowcode/jpaas-common-lib"

export default {
    name: 'list-window',
    components: {
        RxDialog
    },
    props:{
        layerid:{
            type:String
        },
        lydata:{
            type:Object
        },
        destroy:Function,
        data:{}
    },
    data() {
        return {
            config:{
                objectName:'',
                address:''
            }
        }
    },
    created() {
        //获取表单的数据，回填至页面；
        this.config.objectName = this.data.name;
        this.config.address = this.data.address;
    },
    methods: {
        i18n(name,text,key){
            return this.$ti18(name,text,"listdom",key);
        },
        ok(vm){
           vm.loading = false ;
           Util.closeWindow(this,'ok',this.config)
        },
        cancel(){
            Util.closeWindow(this)
        }
    }
}
</script>

<style scoped="scoped">

</style>